/**
 * 代码生成 
 **/

 import { request, requestToken,download } from '@/utils/request';
 

 export const genList = (params) => { return requestToken("post", "/hkfrich-api/generator/list", params) };
 export const genDbList = (params) => { return requestToken("post", "/hkfrich-api/generator/dblist", params) };
 export const importTable = (params) => { return requestToken("post", "/hkfrich-api/generator/importTable", params) };
 export const batchGenCode = (params) => { return download("/hkfrich-api/generator/batchGenCode", params,'HkFRich') };
 export const delTable = (params) => { return requestToken("post", "/hkfrich-api/generator/removeByIds", params) };
 export const previewTable = (params) => { return requestToken("post", "/hkfrich-api/generator/preview", params) };
 export const getGenTable = (params) => { return requestToken("post", "/hkfrich-api/generator/getInfoByTableId", params) };
 export const updateGenTable = (params) => { return requestToken("put", "/hkfrich-api/generator/updateGenTable", params) };
 export const synchDb = (params) => { return requestToken("post", "/hkfrich-api/generator/synchDb", params) };
 